package com.ming.Mapper;

import com.ming.Bean.Student;
import com.ming.Bean.User;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;


import java.util.List;

@Mapper
public interface UserMapper {

    /**
     * 获取所有用户
     * @return
     */
    @Select("select * from user")
    List<User> getUsers();


    @Insert("INSERT INTO user (username,password) VALUE (#{username},#{password}) ")
    int saveUser(User s);
}